home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_351 / pdc / libsrc.lzh / LibSrc / SysIO / chk_abort.doc < prev    next >
Text File  |  1990-04-07  |  973b  |  26 lines

  1. Chk_Abort - Check for a break signal
  2.  
  3. long Chk_Abort()
  4.  
  5. When called, Chk_Abort determines the state of the current task's
  6. break signals.  If none of the signals are set, Chk_Abort will return
  7. zero. 
  8.  
  9. There is a global int (found in Chk_Abort.o of PDC.lib) called
  10. Enable_Abort that, if true, indicates that Chk_Abort should abort the
  11. program (by calling _abort()) when a break signal is detected.  If
  12. false, Chk_Abort returns with the task's break flags. 
  13.  
  14. Chk_Abort is called during the following unbuffered program I/O
  15. operations:
  16.             open, read, write, lseek
  17.  
  18. For programs that either go straight to DOS or otherwise do not use
  19. PDC's I/O functions, it is necessary to call Chk_Abort() directly. 
  20.  
  21. BUGS
  22. It should be easier to generate and respond to software traps when a
  23. program receives a break signal.  This polled approach is useless for
  24. many situations when abort signals would be useful (e.g., a program
  25. that has become deadlocked or entered into an infinite loop). 
  26.